package com.gqzdev.elasticsearch.entity;

import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @ClassName Book
 * @Description
 * @Author ganquanzhong
 * @Date2020/9/20 22:32
 * @Version
 **/
//@Document(indexName = "book",type = "javaBook")
public class Book {

    private String id;

    private String name;

    private String description;

    private String price;

    public Book() {
    }

    public Book(String id, String name, String description, String price) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.price = price;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Book{" +
            "id='" + id + '\'' +
            ", name='" + name + '\'' +
            ", description='" + description + '\'' +
            ", price='" + price + '\'' +
            '}';
    }
}
